import {$get,$post} from './http'

export const $getCurrency=async(params:object)=>{
    return await $get('./set/account/currency',params)
}
export const $getArea=async(params:object)=>{
    return await $get('./set/account/area',params)
}
//設定-消息回復設定-账户设定
export const $getAccount=async(params:object)=>{
    return await $get('./set/account/getInfo',params)
}
export const $postAccount=async(params:object)=>{
    return await $post('./set/account/postInfo',params)
}
export const $getFBpage=async(params:object)=>{
    return await $get('./set/account/fbpage',params)
}
export const $morecart=async(params:object)=>{
    return await $post('./set/morecart/list',params)
}
export const $payList=async(params:object)=>{
    return await $post('./set/pay/list',params)
}
export const $shipList=async(params:object)=>{
    return await $post('./set/ship/list',params)
}
//設定-消息回復設定-电商设定
export const $getEmall=async(params:object)=>{
    return await $get('./set/emall/getInfo',params)
}
export const $postEmall=async(params:object)=>{
    return await $post('./set/emall/postInfo',params)
}


//設定-消息回復設定-默认消息
export const $getAuto=async(params:object)=>{
    return await $get('./msg/getAuto',params)
}
export const $postAuto=async(params:object)=>{
    return await $post('./msg/postAuto',params)
}

//設定-消息回復設定-开始使用消息
export const $getStart=async(params:object)=>{
    return await $get('./msg/getStart',params)
}
export const $postStart=async(params:object)=>{
    return await $post('./msg/postStart',params)
}


//設定-消息回復設定-关键字回复
export const $getKey=async(params:object)=>{
    return await $get('./msg/key/get',params)
}
export const $postKey=async(params:object)=>{
    return await $post('./msg/key/post',params)
}
export const $keyList=async(params:object)=>{
    return await $get('./msg/key/list',params)
}

//設定-消息回復設定-消息内容
export const $msgList=async(params:object)=>{
    return await $get('./msg/cont/list',params)
}

//設定-消息回復設定-人共回复
export const $kfStatus=async(params:object)=>{
    return await $get('./msg/kf/getStatus',params)
}
export const $kfList=async(params:object)=>{
    return await $get('./msg/kf/list',params)
}
export const $singleStatus=async(params:object)=>{
    return await $post('./msg/kf/singleStatus',params)
}
export const $batchStatus=async(params:object)=>{
    return await $post('./msg/kf/batchStatus',params)
}
export const $batchBlack=async(params:object)=>{
    return await $post('./msg/kf/batchBlack',params)
}
export const $dialogList=async(params:object)=>{
    return await $get('./msg/dialog/list',params)
}
export const $sendMsg=async(params:object)=>{
    return await $post('./msg/dialog/sendMsg',params)
}
// function login(data?:object){
//     return axios.post('./user/login/',data);
// }

// function register(data:unknown){
//     return axios.post('./user/register/',data);
// }




